package org.zeapp.opencloud.framework.preference;

/**
 * this interface allows Preference panel to fire an exception to the main
 * caller.
 * 
 * @author Amphiprion
 * 
 */
public interface CallbackHandler {
	/**
	 * Inform that an exception occurs
	 * 
	 * @param t
	 *            the exception
	 */
	void exceptionOccurs(Throwable t);

	/**
	 * Inform the caller that some important data have changed, and need a
	 * refresh. (example : Cloud driver connected)
	 */
	void needRefresh();
}
